//YBZUO
#pragma once
#include <string>
#include <map>
class screen;
class screen_mgr
{
public:
	static screen_mgr& single();
	~screen_mgr(void);
	void render();
	void load_screen_size(int w,int h);
	void load_screens();
	void set_screen_show(std::string name,bool show);
	void disable_show_all_screen();
	int    get_screen_width()const {return m_screen_width;}
	int    get_screen_height()const {return m_screen_height;}
private:
	screen_mgr(void);
	std::string m_screens_file;
	std::string m_page_name;
	int m_size;
	std::map<std::string,screen*> m_screens;
	std::map<std::string,screen*>::iterator m_screen_it;
	int m_screen_width;
	int m_screen_height;
};
